package sideral.ProcesamientoImagen;

import java.util.ArrayList;

import org.apache.log4j.Logger;

public class PixelGroup {
	ArrayList<Pixel> aLPixels;
	static final Logger logger = Logger.getLogger(PixelGroup.class);
	public PixelGroup()
	{
		aLPixels=new ArrayList<Pixel>();
	}
	
	public boolean addPixel(Pixel _pixel)
	{
		if(aLPixels.add(_pixel))
			return true;
		
		else
			return false;
	}
	
	public Pixel getPixel(int _index)
	{
		return aLPixels.get(_index);
	}
	
	public int getSize()
	{
		return aLPixels.size();
	}
}
